package com.anttribe.components.db.executor;

import java.util.List;

import com.anttribe.components.db.executor.entity.SqlExecuteResult;

/**
 * @author zhaoyong
 * @date 2023/1/3 0003
 */
public interface SqlExecutor {

    /**
     * 数据库执行sql
     * 
     * @param sql
     *            待执行的sql
     * @return List<SqlExecuteResult>
     */
    List<SqlExecuteResult> execute(String sql);

    /**
     * 数据库执行sql
     * 
     * @param sql
     *            待执行的sql
     * @return List<SqlExecuteResult>
     */
    List<SqlExecuteResult> execute(List<String> sql);

}
